﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EP.Transport
{
    class TransportProtocolHandler
    {
        public TransportPacket CreateTrasportPacket(TransportProtocolID id, int packetSize, byte[] packet)
        {
            switch (id)
            {
                case TransportProtocolID.ECMP:
                    break;
                case TransportProtocolID.DEBUG:
                    break;
                case TransportProtocolID.SET:
                    break;
                case TransportProtocolID.ASK:
                    break;
                default:
                    // unknown protocol exception??
                    break;
            }

            throw new NotImplementedException();
        }

        // Send packet to protcols and their HandlePacket methods.
        public void HandlePacket(TransportPacket packet)
        {
            switch (packet.Id)
            {
                case TransportProtocolID.ECMP:
                    break;
                case TransportProtocolID.DEBUG:
                    break;
                case TransportProtocolID.SET:
                    break;
                case TransportProtocolID.ASK:
                    break;
                default:
                    // unknown protocol exception??
                    break;
            }

            throw new NotImplementedException();
        }
    }
}
